<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = '登录';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">


    <div class="row">
        <div class="main pd20">
            <h3 class="text-success">快速登录：</h3>
            <hr>
            <div class="row">
                <div class="col-xs-4">
                    <div style="padding-top: 60px;">
                        <p>没用登陆的用户权限有:点赞、评论和举报</p>
                        <p>如果你需要发帖,请先登录</p>
                    </div>

                </div>
                <div class="col-xs-4">
                    <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
                    <?= $form->field($model, 'username')->label("用户名") ?>
                    <?= $form->field($model, 'password')->passwordInput()->label("密码") ?>
                    <?= $form->field($model, 'rememberMe')->checkbox()->label("自动登录") ?>
                    <div style="color:#999;margin:1em 0">
                        忘记密码了？点击 <?= Html::a('重置密码', ['site/request-password-reset']) ?>.
                    </div>
                    <div class="form-group">
                        <?= Html::submitButton('<span class="glyphicon glyphicon-log-in"></span> <strong>登 录</strong>', ['class' => 'btn btn-block btn-primary', 'name' => 'login-button']) ?>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>

        </div>
    </div>
</div>